There are different levels of precomputation. Different objects will be available in different situations:
Environemnts:
precompilation:
task.env (non chunks) <- pre.env <- init.env <- parent.env(global.env)
runtime:
task.env (for chunks) <- init.env <- parent.env(global.env)
Only in chunks and blocks that come after the precompute statement
precompute chunks
Know and write into pre.env
preknit chunks
Interactive chunks:
If prerun = TRUE in settings, all chunks will already be run at compile time. By default, we then also have knit.prerun = TRUE and store.prerun = TRUE.
All chunks know objects from init.env
All earlier chunks in task.line must be solved and also chunks from additional task.in
Default lines:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.